﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace TheLogWatcher
{
    /// <summary>
    ///     This is a representation of a single possible format type property
    ///     that belongs to a format type.
    /// </summary>
    public class FormatConfigsTypeProperty
    {
        public FormatConfigsTypeProperty()
        {
        }

        /// <summary>
        ///     This is the unique ID.
        /// </summary>
        [XmlElementAttribute("ID")]
        public int ID;

        /// <summary>
        ///     This is needed to generate date
        ///     and time representations. (e.g. HH, mm, ss)
        /// </summary>
        [XmlElementAttribute("DateFormat")]
        public string DateFormat;

        /// <summary>
        ///     The regular expression according to this date time part.
        ///     This is needed for parsing log files and manage their content.
        /// </summary>
        [XmlElementAttribute("RegEx")]
        public string RegEx;

        /// <summary>
        ///     A short description what this property will look like.
        /// </summary>
        [XmlElementAttribute("Description")]
        public string Description;
    }
}
